import request from "../utils/request";

export default {
    //获取首页讲师课程数据
    getIndexData() {
        return request({
            url: `http://39.98.120.230:8080/api/course/indexdata`,
            method: "get",
        });
    },
    getPagedList(page, limit, searchObj) {
        return request({
            url: `http://39.98.120.230:8080/api/course/search/${page}/${limit}`,
            method: "post",
            data: searchObj,
        });
    },
    //根据id获取课程详情
    getCourseDatatil(id) {
        return request({
            url: `http://39.98.120.230:8080/api/course/detail/${id}`,
            method: "get",
        });
    },
};